package com.ims.core.enums;

/**
 * 发票状态
 * 10    正常
 * 20    红冲
 * 30    作废
 * 40    失控
 * 50    异常
 * 80    红冲待确认
 * @author IMS
 */
public enum InvoiceStatus {
    NORMAL(0, "正常"),
    OUT_OF_CONTROL(1, "失控"),
    INVALID(2, "作废"),
    RED_FLUSH(3, "红冲"),
    ABNORMAL(4, "异常"),
    PART_RED_FLUSH(7, "部分红冲"),
    FULL_RED_FLUSH(8, "全额红冲"),
    RED_FLUSH_TO_CONFIRM(80, "红冲待确认");

    private final int code;
    private final String name;

    InvoiceStatus(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
